<?php ///var_dump($this->aryCategoryDataView);exit; ?>
<body>
<!-- 头部 -->
<div class="head">
    <div class="width">
        <div class="contain clearboth">
            <div class="left">
                <a href="/">
                    <span></span>
                    <img src="<?= $this->__STATIC__ ?>images/logo.png">
                </a>
            </div>
            <div class="right">
                <div class="top clearboth">
                    <ul class="clearboth">
                        <li>
                            <a href="javascript:;">
                                中文
                            </a>
								<span>
									|
								</span>
                            <a href="javascript:;">
                                English
                            </a>
                        </li>
                        <li>
                            <a href="http://mail.sbt-sh.com" target="_blank">
                                CRM登陆
                            </a>
                        </li>
                        <li>
                            <a href="http://116.62.245.220" target="_blank">
                                邮箱登陆
                            </a>
                        </li>
                    </ul>
                </div>
                <div class="bot clearboth">
                    <div class="bL">
                        <ul class="clearboth">
                            <li <?= $this->aliasId1 == 'home' ? 'class="cur"' : '' ?>>
                                <a href="/" class="aTop">
                                    首页
                                </a>
                            </li>
                            <?php
                            $_i = 1;
                            foreach ($this->aryCategoryDataView as $_k1 => $_v1):
                                if ($_k1 > 0 && $_v1['nav_type'] == 0  && $_v1['language'] == $this->__LANGUAGE_ID__):
								$_hasChild = App\Tools\Auxi::typeHasChild($this->aryCategoryDataView[$_k1]);
                                    $_tmpLink = App\Tools\UrlHelper::getTypeUrl($this->aryCategoryDataView, $_v1['id_tree']);
                                    $_sltMenu = App\Tools\Auxi::compareSelect($_k1, $this->rootId, 'cur', "" .
                                        ($_hasChild ? '' : '' ));
                                    ?>
                                    <li<?= $_sltMenu ?>>
                                        <a href="<?= $_tmpLink ?>"><?= $_v1['category_name'] ?></a>
										<?php
                                    if ($_hasChild) :
                                        ?>
										<p>
                                           <?php
                                            foreach ($this->aryCategoryDataView[$_k1] as $_k3 => $_v3) :
                                                if (is_array($_v3) && $_v3['language'] == $this->__LANGUAGE_ID__):
                                                    $_tmpLink2 = App\Tools\UrlHelper::getTypeUrl($this->aryCategoryDataView, $_v3['id_tree']);
                                                    ?>
                                                    <a href="<?= $_tmpLink2 ?>" >
                                                        <?= $_v3['category_name'] ?>
                                                    </a>
                                                <?php
                                                endif;
                                            endforeach;
                                            ?>
                                        </p>
										
										<?php 
											endif;
										?>
                                        
                                    </li>
                                    <?php
                                    $_i++;
                                endif;
                            endforeach;
                            ?>
                        </ul>
                    </div>
                    <div class="bR">
                        <input type="text" placeholder="请输入关键词搜索" value="<?= $_GET['title'] ?>" id="search">
                        <a href="javascript:;" id="searches"></a>
                    </div>
                </div>
            </div>
            <div class="menuIcon">
                <span></span>
            </div>
        </div>
    </div>
    <div class="rightLines"></div>
</div>